<template>
	<view>
		<view class="r1">
			<text>{{detail.title}}</text>
			<text>{{detail.author}}</text>
		</view>
		<u-parse :content="detail.content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0,
				detail:{}
			}
		},
		onLoad(options) {
			this.id=options.id
			this.getdetail()
		},
		methods: {
			getdetail(){
				this.api.get('/prod-api/api/youth-inn/talent-policy/'+this.id).then(res=>{
					this.detail=res.data.data
				})
			}
		}
	}
</script>

<style lang="scss">
.r1{
	display: flex;
	flex-direction: column;
	text-align: center;
	margin-bottom: 20px;
}
</style>
